<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">新增岗位证信息</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-icon-cog"></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form class="am-form tpl-form-line-form" id="handcertificatebasicinfoForm" method="post" enctype="multipart/form-data">
                        <!--操作证类型(certificateType)-->
                        <div class="am-form-group">
                            <label for="certificateType" class="am-u-sm-2 am-form-label">操作证类型
                                <span class="tpl-form-line-small-title">CertificateType</span>
                            </label>
                            <div class="am-u-sm-10">
                                <div id="certificateType" class="am-form-group">
                                    <input type="radio" class="am-form-group" name="certificateType" value="0">操作证</input>
                                    <input type="radio" class="am-form-group" name="certificateType" value="1">评估师证</input>
                                    <input type="radio" class="am-form-group" name="certificateType" value="2">维修技师证</input>
                                </div>
                            </div>
                        </div>
                        <!--机械类型(machineryType)-->
                        <div class="am-form-group">
                            <label for="machineryType" class="am-u-sm-2 am-form-label">机械类型
                                <span class="tpl-form-line-small-title">MachineryType</span>
                            </label>
                            <div class="am-u-sm-10">
                                <select class="tpl-form-input"  name="machineryType" id="machineryType">
                                    <option value=''>---请选择---</option>
                                    <option value="0">挖掘机</option>
                                    <option value="1">装载机</option>
                                    <option value="2">矿用自卸车</option>
                                    <option value="3">推土机</option>
                                    <option value="4">压路机</option>
                                    <option value="5">平地机</option>
                                    <option value="6">混凝土机械</option>
                                    <option value="7">桩工机械</option>
                                    <option value="8">凿岩机械</option>
                                    <option value="9">摊铺机</option>
                                    <option value="10">俩头忙</option>
                                    <option value="11">旋挖钻</option>
                                    <option value="12">叉车</option>
                                </select>
                            </div>
                        </div>
                        <!--证件级别(certificateLevel)-->
                        <div class="am-form-group">
                            <label for="certificateLevel" class="am-u-sm-2 am-form-label">证件级别
                                <span class="tpl-form-line-small-title">CertificateLevel</span>
                            </label>
                            <div class="am-u-sm-10">
                                <select class="tpl-form-input"  name="certificateLevel" id="certificateLevel">
                                    <option value=''>---请选择---</option>
                                    <option value= "1">初级</option>
                                    <option value= "2">中级</option>
                                    <option value= "3">高级</option>
                                    <option value= "4">专家级</option>
                                </select>
                            </div>
                        </div>
                        <!--姓名(name)-->
                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-2 am-form-label">姓名
                                <span class="tpl-form-line-small-title">Name</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="name" class="tpl-form-input" placeholder="请输入" name="name" />
                            </div>
                        </div>
                        <!--性别(sex)-->
                        <div class="am-form-group">
                            <label for="sex" class="am-u-sm-2 am-form-label">性别
                                <span class="tpl-form-line-small-title">Sex</span>
                            </label>
                            <div class="am-u-sm-10">
                                <div class="am-form-group" id="sex">
                                    <input type="radio" class="am-form-group" name="sex" value="0">男</input>
                                    <input type="radio" class="am-form-group" name="sex" value="1">女</input>
                                </div>
                            </div>
                        </div>
                        <!--身份证(identityNum)-->
                        <div class="am-form-group">
                            <label for="identityNum" class="am-u-sm-2 am-form-label">身份证
                                <span class="tpl-form-line-small-title">IdentityNum</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="identityNum" class="tpl-form-input" placeholder="请输入" name="identityNum" />
                            </div>
                        </div>
                        <!--住址(address)-->
                        <div class="am-form-group">
                            <label for="address" class="am-u-sm-2 am-form-label">住址
                                <span class="tpl-form-line-small-title">Address</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="address" class="tpl-form-input" placeholder="请输入" name="address" />
                            </div>
                        </div>
                        <!--手机号(phone)-->
                        <div class="am-form-group">
                            <label for="phone" class="am-u-sm-2 am-form-label">手机号
                                <span class="tpl-form-line-small-title">Phone</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="phone" class="tpl-form-input" placeholder="请输入" name="phone" />
                            </div>
                        </div>
                        <!--工作年限(workTime)-->
                        <div class="am-form-group">
                            <label for="workTime" class="am-u-sm-2 am-form-label">工作年限
                                <span class="tpl-form-line-small-title">WorkTime</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="workTime" class="tpl-form-input" placeholder="请输入" name="workTime" />
                            </div>
                        </div>
                        <!--备注信息(remark)-->
                        <div class="am-form-group">
                            <label for="remark" class="am-u-sm-2 am-form-label">备注信息
                                <span class="tpl-form-line-small-title">remark</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="remark" class="tpl-form-input" placeholder="请输入关键字" name="remark" />
                            </div>
                        </div>
                        <!--&lt;!&ndash;出生日期(birthday)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="birthday" class="am-u-sm-2 am-form-label">出生日期-->
                        <!--<span class="tpl-form-line-small-title">Birthday</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text"  id="birthday" class="tpl-form-input validate[required]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" name="birthday" />-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;受教育水平(educationLevel)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="educationLevel" class="am-u-sm-2 am-form-label">受教育水平-->
                        <!--<span class="tpl-form-line-small-title">EducationLevel</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<select class="tpl-form-input"  name="educationLevel" id="educationLevel">-->
                        <!--<option value=''>-&#45;&#45;请选择-&#45;&#45;</option>-->
                        <!--<option value= "1">小学</option>-->
                        <!--<option value= "2">初中</option>-->
                        <!--<option value= "3">初中中专</option>-->
                        <!--<option value= "4">高中</option>-->
                        <!--<option value= "5">高中中专</option>-->
                        <!--<option value= "6">大专</option>-->
                        <!--<option value= "7">本科</option>-->
                        <!--<option value= "8">硕士研究生</option>-->
                        <!--<option value= "9">博士研究生</option>-->
                        <!--</select>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;公司名称(companyName)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="companyName" class="am-u-sm-2 am-form-label">公司名称-->
                        <!--<span class="tpl-form-line-small-title">CompanyName</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="companyName" class="tpl-form-input" placeholder="请输入" name="companyName" />-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;籍贯(origin)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="origin" class="am-u-sm-2 am-form-label">籍贯-->
                        <!--<span class="tpl-form-line-small-title">Origin</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="origin" class="tpl-form-input" placeholder="请输入" name="origin" />-->
                        <!--</div>-->
                        <!--</div>-->


                        <!--&lt;!&ndash;邮箱(email)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="email" class="am-u-sm-2 am-form-label">邮箱-->
                        <!--<span class="tpl-form-line-small-title">Email</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="email" class="tpl-form-input" placeholder="请输入" name="email" />-->
                        <!--</div>-->
                        <!--</div>-->


                        <!--&lt;!&ndash;证书有效开始时间(startCerDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="startCerDate" class="am-u-sm-2 am-form-label">证书有效开始时间-->
                        <!--<span class="tpl-form-line-small-title">startCerDate</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text"  id="startCerDate" class="tpl-form-input validate[required]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="startCerDate" />-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;证书有效结束时间(endCerDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="endCerDate" class="am-u-sm-2 am-form-label">证书有效结束时间-->
                        <!--<span class="tpl-form-line-small-title">endCerDate</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text"  id="endCerDate" class="tpl-form-input validate[required]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="endCerDate" />-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训开始时间(startTrainDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="startTrainDate" class="am-u-sm-2 am-form-label">培训开始时间-->
                        <!--<span class="tpl-form-line-small-title">startTrainDate</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text"  id="startTrainDate" class="tpl-form-input validate[required]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="startTrainDate" />-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训结束时间(endTrainDate)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="endTrainDate" class="am-u-sm-2 am-form-label">培训结束时间-->
                        <!--<span class="tpl-form-line-small-title">endTrainDate</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text"  id="endTrainDate" class="tpl-form-input validate[required]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="endTrainDate" />-->
                        <!--<div class="input-group-btn">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--&lt;!&ndash;培训内容(trainContent)&ndash;&gt;-->
                        <!--<div class="am-form-group">-->
                        <!--<label for="trainContent" class="am-u-sm-2 am-form-label">培训内容-->
                        <!--<span class="tpl-form-line-small-title">trainContent</span>-->
                        <!--</label>-->
                        <!--<div class="am-u-sm-10">-->
                        <!--<input type="text" id="trainContent" class="tpl-form-input" placeholder="请输入" name="trainContent" />-->
                        <!--</div>-->
                        <!--</div>-->
                        <div class="am-form-group">
                            <div class="am-u-sm-10 am-u-sm-push-2">

                                <button type="button" onclick="return doSubmit();"
                                        class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                <button type="button" onclick="loadPage('handcertificatebasicinfo/listUI')"
                                        class="am-btn am-btn-success tpl-btn-bg-color-success ">返回</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
<script th:inline="javascript">
    <![CDATA[
    //$('select').selected();
    validateUserForm();
    var valdater;
    function validateUserForm(){
        valdater=$('#handcertificatebasicinfoForm').validate({
            errorElement : 'span',
            errorClass : 'am-icon-times',
            focusInvalid : true,
            onkeyup:false,
            ignore : "",
            rules : {
                title : {
                    required : true
                }
            },
            messages : {
                name : {
                    required : "请填写名称"
                }
            }
        });
    }

    function doSubmit(){
        if(valdater.form()){
            commit('handcertificatebasicinfoForm', 'handcertificatebasicinfo/save', 'handcertificatebasicinfo/listUI');
            return true;
        }
        return false;
    }

    //initUpFileOne('upFile','coverImg','添加封面图片','');

    ]]>
</script>
<script type="text/javascript" th:src="@{/My97DatePicker/WdatePicker.js}"/>